# Contributor: Galen Abell <galen@galenabell.com>
# Maintainer: Galen Abell <galen@galenabell.com>
pkgname=py3-mpd2
_pyname=python-mpd2
pkgver=3.0.5
pkgrel=0
pkgdesc="python client interface for MPD"
url="https://github.com/Mic92/python-mpd2"
arch="noarch"
license="LGPL-3.0-only"
depends="python3"
makedepends="py3-setuptools"
checkdepends="py3-mock py3-twisted"
source="$_pyname-$pkgver.tar.gz::https://github.com/Mic92/python-mpd2/archive/v$pkgver.tar.gz"
builddir="$srcdir/$_pyname-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 -m unittest mpd.tests
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
521345b905113eaa56e6ec983e4d968d77dca30f839ab52a00e146f311269828ed383bce460ba1daf61b7f98c63ae3b7a3cbcb55cf917b1c5a5a11cf62b6a7d5  python-mpd2-3.0.5.tar.gz
"
